<div class="row-fluid">
    <div class="navbar no-margin">
        <div class="navbar-inner">
            <ul class="breadcrumb">
                <i class="icon-chevron-left hide-sidebar"><a href='#' title="Hide Sidebar" rel='tooltip'>&nbsp;</a></i>
                <i class="icon-chevron-right show-sidebar" style="display:none;"><a href='#' title="Show Sidebar"
                                                                                    rel='tooltip'>&nbsp;</a></i>
                <li>
                    <a href="#/onduty">首页</a>
                </li>
                <li>
                    <a href="#/sre/config/negative_feedback_list/">配置列表</a>
                </li>
                <li class="active">负反馈配置</li>
            </ul>
        </div>
    </div>
</div>

<div class="container-fluid">

    <div class="row">
        <div class="col-sm-12 col-md-12 main">
            <div class="col-md-6 col-md-offset-3">
                <!--                <form name="form" ng-keydown="if(event.keyCode==13) return false;" ng-submit="form.$valid&&olapConfigAdd()" novalidate>-->
                <form name="form" novalidate>

                    <div class="form-group"
                         ng-class="{'has-error':form.groupCode.$error.required,'has-success':!form.groupCode.$error.required}">
                        <label style="padding: 0 0 5px">不感兴趣类型ID</label>
                        <input type="text" class="form-control" name="groupCode" ng-model="vm.p.groupCode" required />
                        <span ng-show="form.groupCode.$error.required" class="help-block">不感兴趣类型ID</span>
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.groupName.$error.required,'has-success':!form.groupName.$error.required}">
                        <label style="padding: 0 0 5px">不感兴趣类型名称</label>
                        <input type="text" class="form-control" name="groupName" ng-model="vm.p.groupName" required />
                        <span ng-show="form.groupName.$error.required" class="help-block">不感兴趣类型名称</span>
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.reasonCode.$error.required,'has-success':!form.reasonCode.$error.required}">
                        <label style="padding: 0 0 5px">原因id</label>
                        <input type="text" class="form-control" name="reasonCode" ng-model="vm.p.reasonCode" required />
                        <span ng-show="form.reasonCode.$error.required" class="help-block">不感兴趣类型ID</span>
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.reasonName.$error.required,'has-success':!form.reasonName.$error.required}">
                        <label style="padding: 0 0 5px">原因名称</label>
                        <input type="text" class="form-control" name="reasonName" ng-model="vm.p.reasonName" required />
                        <span ng-show="form.reasonName.$error.required" class="help-block">原因名称</span>
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.attrName.$error.required,'has-success':!form.attrName.$error.required}">
                        <label style="padding: 0 0 5px">取数仓字段</label>
                        <input type="text" class="form-control" name="attrName" ng-model="vm.p.attrName" required />
                    </div>

                    <div class="form-group" ng-class="has-success">
                        <label style="padding: 0 0 5px">原因备注描述</label>
                        <input type="text" class="form-control" name="reasonDesc" ng-model="vm.p.reasonDesc" />
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.status.$error.required,'has-success':!form.status.$error.required}">
                        <label style="padding: 0 0 5px">是否启用</label>
                        <select required name="status" ng-model="vm.p.status" class="form-control">
                            <option value="1">是</option>
                            <option value="2">否</option>
                        </select>
                        <span ng-show="form.status.$error.required" class="help-block">是否启用</span>
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.pmOa.$error.required,'has-success':!form.pmOa.$error.required}">
                        <label style="padding: 0 0 5px">产品负责人</label>
                        <input type="text" class="form-control" name="pmOa" ng-model="vm.p.pmOa" required />
                        <span ng-show="form.pmOa.$error.required" class="help-block">产品负责人</span>
                    </div>

                    <div class="form-group"
                         ng-class="{'has-error':form.action.$error.required,'has-success':!form.action.$error.required}">
                        <label style="padding: 0 0 5px">状态</label>
                        <select required name="action" ng-model="vm.p.action" class="form-control">
                            <option value="0">新建</option>
                            <option value="1">更新</option>
                            <option value="2">删除</option>
                        </select>
                        <span ng-show="form.action.$error.required" class="help-block">状态</span>
                    </div>

                    <div class="form-group">
                        <input class="btn btn-primary" ng-class="{'disabled':!form.$valid}" type="button" value="确定"
                               ng-click="form.$valid&&productInfoSave()" />
                        <a href="#/star/config/negative_feedback_list/" class="btn btn-default">返回</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--/.container-->
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput.js"></script>
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput-angular.js"></script>